package com.bestow.basic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.bestow.common.annotation.Excel;
import com.bestow.common.core.domain.BaseEntity;

/**
 * 编码规则明细对象 fnd_coding_rule_details
 * 
 * @author liliu
 * @date 2022-09-03
 */
public class FndCodingRuleDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编码规则明细ID */
    private Long codingRuleLineId;

    /** 编码规则ID */
    @Excel(name = "编码规则ID")
    private Long codingRuleId;

    /** 顺序 */
    @Excel(name = "顺序")
    private Long sequence;

    /** 段值类型（syscode：FND.CODING_RULE_SEGMENT） */
    @Excel(name = "段值类型", readConverterExp = "s=yscode：FND.CODING_RULE_SEGMENT")
    private String segmentType;

    /** 段值 */
    @Excel(name = "段值")
    private String segmentValue;

    /** 说明 */
    @Excel(name = "说明")
    private String note;

    /** 日期格式 */
    @Excel(name = "日期格式")
    private String dateFormat;

    /** 长度 */
    @Excel(name = "长度")
    private Long length;

    /** 增量 */
    @Excel(name = "增量")
    private Long incremental;

    /** 起始值 */
    @Excel(name = "起始值")
    private Long startValue;

    /** 启用标志 */
    @Excel(name = "启用标志")
    private String enabledFlag;

    public void setCodingRuleLineId(Long codingRuleLineId) 
    {
        this.codingRuleLineId = codingRuleLineId;
    }

    public Long getCodingRuleLineId() 
    {
        return codingRuleLineId;
    }
    public void setCodingRuleId(Long codingRuleId) 
    {
        this.codingRuleId = codingRuleId;
    }

    public Long getCodingRuleId() 
    {
        return codingRuleId;
    }
    public void setSequence(Long sequence) 
    {
        this.sequence = sequence;
    }

    public Long getSequence() 
    {
        return sequence;
    }
    public void setSegmentType(String segmentType) 
    {
        this.segmentType = segmentType;
    }

    public String getSegmentType() 
    {
        return segmentType;
    }
    public void setSegmentValue(String segmentValue) 
    {
        this.segmentValue = segmentValue;
    }

    public String getSegmentValue() 
    {
        return segmentValue;
    }
    public void setNote(String note) 
    {
        this.note = note;
    }

    public String getNote() 
    {
        return note;
    }
    public void setDateFormat(String dateFormat) 
    {
        this.dateFormat = dateFormat;
    }

    public String getDateFormat() 
    {
        return dateFormat;
    }
    public void setLength(Long length) 
    {
        this.length = length;
    }

    public Long getLength() 
    {
        return length;
    }
    public void setIncremental(Long incremental) 
    {
        this.incremental = incremental;
    }

    public Long getIncremental() 
    {
        return incremental;
    }
    public void setStartValue(Long startValue) 
    {
        this.startValue = startValue;
    }

    public Long getStartValue() 
    {
        return startValue;
    }
    public void setEnabledFlag(String enabledFlag) 
    {
        this.enabledFlag = enabledFlag;
    }

    public String getEnabledFlag() 
    {
        return enabledFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("codingRuleLineId", getCodingRuleLineId())
            .append("codingRuleId", getCodingRuleId())
            .append("sequence", getSequence())
            .append("segmentType", getSegmentType())
            .append("segmentValue", getSegmentValue())
            .append("note", getNote())
            .append("dateFormat", getDateFormat())
            .append("length", getLength())
            .append("incremental", getIncremental())
            .append("startValue", getStartValue())
            .append("enabledFlag", getEnabledFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
